<?php

namespace Database\Factories;

use App\Models\TransactionLog;
use Illuminate\Database\Eloquent\Factories\Factory;

class TransactionLogFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = TransactionLog::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(1, 10),
            'mer_id' => $this->faker->numberBetween(1, 10),
            'turnover_price' => $this->faker->randomFloat(2, 0, 50),
            'transactior_price' => $this->faker->randomFloat(2, 0, 50),
            'pay_price' => $this->faker->randomFloat(2, 0, 50),
            'money_price' => $this->faker->randomFloat(2, 0, 50),
            'price' => $this->faker->randomFloat(2, 0, 50),
            'number' => $this->faker->randomFloat(2, 0, 50),
            'created_at' => date('Y-m-d H:i:s',$this->faker->numberBetween(1632500000, time())),
            'updated_at' => date('Y-m-d H:i:s',$this->faker->numberBetween(1632500000, time())),
        ];
    }
}
